#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#define MAX 10

void BubbleSort(int* arr,int len);
void main10() {
	srand((size_t)time(NULL));
	
	int* p = (int*)malloc(sizeof(int) * MAX);
	for (int i = 0; i < MAX; i++)
	{
		p[i] = rand() % 100;
		printf("%d  ", p[i]);
	}
	puts("");
	BubbleSort(p, MAX);
	for (int i = 0; i < MAX; i++)
	{
		printf("%d  ", p[i]);
	}
	free(p);
}